#define   _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int num1 = -3;//10000000 00000000 00000011
	              //11111111 11111111 11111100
	              //11111111 11111111 11111101
	int num2 = 5; //00000000 00000000 00000101
	              

	              //00000000 00000000 00000101
				  // 
                  //11111111 11111111 11111101
	              //10000000 00000000 00000010
	              //10000000 00000000 00000011
	             
	              //11111111 11111111 11111000
	              //10000000 00000000 00000111
	              //10000000 00000000 00001000

	             



	              //00000000 00000000 00000001
	              //10000000 00000000 00000111
	printf("%d\n", num1 & num2);
	printf("%d\n", num1 | num2);
	printf("%d\n", num1 ^ num2);
	printf("%d\n", ~0);
	return 0;
}